#ifndef RECT_H
#define RECT_H

#include <core/object.h>
#include <math/math.h>

namespace yam3d
{
namespace graphics
{

    class Rect : public core::Object
    {
    public:
        Rect();
        Rect(float startX, float startY, float sizeX, float sizeY  );
        Rect( const math::vec2& start, const math::vec2& size );
        Rect(const Rect&);
        Rect& operator=(const Rect&);
        virtual ~Rect();

        void setStart( const math::vec2& start );
        void setSize( const math::vec2& size );

        const math::vec2& getStart() const;
        const math::vec2& getSize() const;

    private:
        math::vec2 m_start;
        math::vec2 m_size;
    };

}
}


#endif // RECT_H
